both hand on hips

เนื้อหานี้ถูกจำกัด แนะนำเนื้อหาต่อไปนี้สำหรับคุณ
Easy Flux Inpaint (Florence, SAM2 & SEGS Detailer)

--

Index 0 Error: A couple of people have experienced an error "There's nothing in Index 0" and I had it happen to me today. Has the Florence Large model selected, worked fine for Inpainting an image, I then swapped to a different image and that's when the error happened. Changed the model to base, went through fine. Tried some other versions of Florence and the error came back. Changed image and went back to Large and no error. Seems like some versions of Florence are failing to pick up the prompt for what needs to be masked and giving empty data to the co-ordinates node, hence the error. So if you do get it, try base which seems to be the least affected by it, or try changing your mask prompt. Worst case scenario if none of that works is to switch to manual mask and try auto again with the next image you want to Inpaint. Update 4: Added an invert Mask node. If you put person into the Florence prompt for the auto masking and enable the invert mask node, you can use it to Inpaint the background. Update 3: Added a couple of LoRAModelLoaderOnly nodes. Update 2: Added the ModelSamplingFlux node, not quite sure how I missed that. In addition, swapped out the Load and Resize Image node for a standard load image node and also added an image switch node to the Manual mask group. A couple of times I switched to that but forgot to add the picture to the load image in the Florence group, so the result was not what I expected. Seemed silly having to load the same image twice, so I've put that with the switch to swap masks. Have both set to true if you're using Florence and SAM2 for auto masking, false if you need to mask something by hand.
Ashen